package com.tianyu.sports.enums;

/**
 * @author Jzen
 * @Title: sports
 * @Package com.tianyu.sports.enums
 * @Description: ${todo}
 * @date 2018/5/28 10:34
 */
public enum ResultEnum {

    UNKNOW_ERROR(-1,"未知错误"),
    SMS_CODE_ERROR(-101,"短信发送异常"),
    REGISTER_ERROR(-102,"注册信息异常"),
    INFO_REPEAT(-103,"信息以存在"),
    ERROR_PHONE(-104,"错误手机号码"),
    INSERT_ERROR(-105,"INSERT_ERROR"),
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}